cmake_minimum_required(VERSION 3.0.0)
project(HVA VERSION 0.1.0 LANGUAGES C)

add_executable(HVA main.c)

# add_executable(control control.c)
# target_link_libraries(control asound)

# add_executable(record record.c)
# target_link_libraries(record asound)

add_executable(play play.c)
target_link_libraries(play asound)

add_executable(key key.c record.c control.c stt.c config.c token.c)
target_link_libraries(key curl jansson gpiod asound)

add_subdirectory(snowboy)
add_executable(wake wake.c record.c)
target_link_libraries(wake snowboy-wrapper snowboy-detect cblas m stdc++ asound)

add_executable(jrsc jrsc.c)
target_link_libraries(jrsc curl cjson)

add_executable(token token.c config.c)
target_link_libraries(token curl jansson)

add_executable(stt stt.c config.c token.c)
target_link_libraries(stt curl jansson)
